package com.itliang.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itliang.core.model.IdRequest;
import com.itliang.core.model.dto.system.sysrole.AssignRoleRequest;
import com.itliang.core.model.entity.system.SysRole;

import java.util.Map;

/**
 * @author liangzhuoyuan
 * @description 针对表【sys_role(角色)】的数据库操作Service
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 根据用户获取角色数据
     *
     * @param idRequest
     * @return
     */
    Map<String, Object> getRolesByUserId(IdRequest idRequest);

    /**
     * 根据用户分配角色
     *
     * @param assignRoleRequest
     */
    void doAssign(AssignRoleRequest assignRoleRequest);
}
